package com.glowdayz.glowmee;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class ColorTypeFm extends Fragment {
	
	String PARAM_colorType = "";
	TextView colorType = null;
	
	@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        View viewProductView = inflater.inflate(R.layout.fm_color_type, container, false);
        
        PARAM_colorType = getArguments().getString("PARAM_colorType");
        colorType = (TextView) viewProductView.findViewById(R.id.colorType);
        
        if (PARAM_colorType.equals("null")) {
        	colorType.setText("컬러/타입이 없습니다.");
        } else {
        	colorType.setText(PARAM_colorType);
        }
        
        return viewProductView;
    }

}
